package com.xxb.constant;

/**
 * @Author: 陈亮
 * @Date: 2018/7/7 20:45
 */
public enum ResponseCode {

    //请求状态
    请求成功(200, "请求成功"),

    请求失败(201, "请求失败"),

    //用户状态
    登录成功(300, "登录成功"),

    登录失败(301, "登录失败"),

    未授权(401, "未授权");

    private int code;

    private String msg;

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
